#pragma once

struct SPassEvent {
    uint64_t dataId;
    string deviceId;
    string deviceName;
    int    laneId;
    int    laneNo;
    string location;
    string eventType;
    string eventDate;
    int    speed;
    int    systemType;
    string lon;
    string lat;
    string height;
    string grade;
    string plateType;
    string plate;
    string picUrl;

    SPassEvent()
        :lon("0.0")
        ,lat("0.0")
        ,height("0.0")
    {
    }
};

namespace AccessEvent
{
    extern void Init();
    extern void AddEvent(SPassEvent *e);
    extern void Clean();
};

